github.com/0chain/gosdk@v1.17.11/docs/uml/add collaborator.puml (about)

     1  @startuml
     2  participant "<size:20><&terminal></size> ./zbox add-collab" as cli
     3  collections gosdk
     4  collections blobber
     5  
     6  cli -> gosdk: GetAllocation(allocationID)
     7  cli -> gosdk: AddCollaborator(remotepath, collabID)
     8  
     9  gosdk -> gosdk: check initialized allocation
    10  gosdk -> gosdk: create collaborator request
    11  
    12  group for each blobber (blobber, bidx)
    13  gosdk -> blobber: call http request to update collaborator
    14  alt successful status code
    15  gosdk -> gosdk: return successful status 
    16  end
    17  end
    18  
    19  gosdk -> gosdk: check the number of successful status equal to the number of blobbers
    20  @enduml